import { ApiProperty } from '@nestjs/swagger'
import { IsNotEmpty, } from 'class-validator'
import { IsUserNotExits } from '@/user/validators/user-not-exist.validator'
export class UserCreateDto {
  @ApiProperty({ example: 'abyyds' })
  @IsNotEmpty({ message: "用户名不得为空" })
  @IsUserNotExits()
  username: string
  @ApiProperty({ example: "123123" })
  @IsNotEmpty({ message: "密码不得为空" })
  password: string
}
